// File generated from our OpenAPI spec by Stainless.

package com.metest.api.models.pet

import com.metest.api.core.http.Headers
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

internal class PetDeleteParamsTest {

    @Test
    fun create() {
        PetDeleteParams.builder().petId(0L).apiKey("api_key").build()
    }

    @Test
    fun pathParams() {
        val params = PetDeleteParams.builder().petId(0L).build()

        assertThat(params._pathParam(0)).isEqualTo("0")
        // out-of-bound path param
        assertThat(params._pathParam(1)).isEqualTo("")
    }

    @Test
    fun headers() {
        val params = PetDeleteParams.builder().petId(0L).apiKey("api_key").build()

        val headers = params._headers()

        assertThat(headers).isEqualTo(Headers.builder().put("api_key", "api_key").build())
    }

    @Test
    fun headersWithoutOptionalFields() {
        val params = PetDeleteParams.builder().petId(0L).build()

        val headers = params._headers()

        assertThat(headers).isEqualTo(Headers.builder().build())
    }
}
